<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:72:"D:\Development\wkyx\public/../application/index\view\together\train.html";i:1534922106;s:71:"D:\Development\wkyx\public/../application/index\view\common\header.html";i:1534900110;s:71:"D:\Development\wkyx\public/../application/index\view\common\footer.html";i:1532576206;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/index.css">
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/font.css">
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/bootstrap.min.js"></script>
<script type="text/javascript" src = "<?php echo STATIC_PATH; ?>/js/index.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>拼场</title>
</head>
<body>
	<div class="container margin-top">
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-xs-10">
				<img src="<?php echo STATIC_PATH; ?>/image/nyx.jpg" alt="" width="100%">
			</div>
			<div class="col-md-1 col-xs-2 margin">
				<a href="<?php echo url('Index/index'); ?>">返回</a>
			</div>
		</div>
		<div class="row margin-top">
			<div class="col-md-offset-1 col-md-10 col-xs-12">
				<p class="text-center">
					<strong>当前教球信息</strong>
				</p>
				<hr style="border:0;background-color:#ff0000;height:1px;margin: 5px">
			</div>
		</div>
		<div class="row margin-top padding-bottom">
			<div class="col-md-offset-2 col-md-8 col-xs-12">
				<div class="panel-group" id="accordion">
					<?php if(is_array($teaching) || $teaching instanceof \think\Collection || $teaching instanceof \think\Paginator): $i = 0; $__LIST__ = $teaching;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?>
					    <div class="panel panel-default">
		                	<div class="row margin-top margin-left">
								<div class="col-xs-7 col-ms-7 margin-top"> 
									<p>参与人:<?php echo $list['now']; ?>/<?php echo $list['max']; ?> </p>
									<p>时长:<?php echo $list['time']; ?></p>
									<p>时间:<?php echo $list['begin']; ?></p> 
								</div>
								<div class="col-xs-4 col-ms-4 margin">
									<p class="text-right">
										<a href="<?php echo url('Together/c_insert'); ?>?id=<?php echo $list['id']; ?>">
											<button class="btn-block btn-xs btn-info margin-top">
												加入训练
											</button>
										</a>
										<a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $list['id']; ?>">	
											<button class="btn-block btn-xs btn-info margin-top">
												教学内容
											</button>
										</a>
										<button class="btn-block btn-xs btn-info margin-top" onclick="copy_teaching(<?php echo $list['id']; ?>)">
											复制链接
										</button>
									</p>
								</div>
							</div>
					        <div id="collapse<?php echo $list['id']; ?>" class="panel-collapse collapse">
					            <div class="panel-body">
					                <?php echo $list['tips']; ?>
					            </div>
					        </div>
					    </div>
				    <?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div>
		</div>
	</div>
	<nav class="navbar navbar-fixed-bottom adjust-footer">
    <div class="container">
        <p class="text-center text-primary">
            Copyright © 北京化工大学吾酷羽协
        </p>
    </div>
</nav>


</body>
</html>